package com.hang.gymmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hang.gymmanager.entity.CommodityEntity;
import com.hang.gymmanager.req.PageCommodityReq;
import com.hang.gymmanager.res.CommodityRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface CommodityMapper extends BaseMapper<CommodityEntity> {

    Page<CommodityRes> getCommodityPage(@Param("req") PageCommodityReq req,
                                        Page page);

}
